package 行为型模式.命令模式;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description 订单类，属于  具体命令角色中要传递的消息
 * @Author shallow
 * @Date 2023/3/8 9:44
 */

public class Order {
    //餐桌号码
    private int diningTable;
    //所下产品和份数
    private Map<String,Integer> foodDir = new HashMap<>();

    public int getDiningTable() {
        return diningTable;
    }

    public void setDiningTable(int diningTable) {
        this.diningTable = diningTable;
    }

    public Map<String, Integer> getFoodDir() {
        return foodDir;
    }

    public void setFood(String name, int num) {
        foodDir.put(name,num);
    }
}
